package cn.zhizihua.pojo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.NoArgsConstructor;
// TODO
@Data
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL) //关联查询结果展示包含非空的字段  （如果字段是空的，转JSON时自动忽略掉了）
public class Address {
    private Integer addressId;
    private String contactName;
    private Integer contactGender;
    private String contactTel;
    private String address;
    private Integer userId;

    public Address(Integer addressId, String contactName, Integer contactGender, String contactTel, String address, Integer userId) {
        this.addressId = addressId;
        this.contactName = contactName;
        this.contactGender = contactGender;
        this.contactTel = contactTel;
        this.address = address;
        this.userId = userId;
    }

    private User user;
}
